<?php
// +----------------------------------------------------------------------
// | 路由设置
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group('movie.admin', function () {
    Route::rule('index', '/api/movie.admin/index');
    Route::rule('add', '/api/movie.admin/add');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.adminLog', function () {
    Route::rule('index', '/api/movie.adminLog/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.datamonitor', function () {
    Route::rule('getReserveCategoryRanking', '/api/movie.datamonitor/getReserveCategoryRanking');
    Route::rule('getStatisInfo', '/api/movie.datamonitor/getStatisInfo');
    Route::rule('getReserveOrderByDay', '/api/movie.datamonitor/getReserveOrderByDay');
    Route::rule('getReserveOrderByMonth', '/api/movie.datamonitor/getReserveOrderByMonth');
    Route::rule('getCollectorOrderRanking', '/api/movie.datamonitor/getCollectorOrderRanking');
    Route::rule('getOrderByDay', '/api/movie.datamonitor/getOrderByDay');
    Route::rule('getStockLog', '/api/movie.datamonitor/getStockLog');
    Route::rule('getBalanceData', '/api/movie.datamonitor/getBalanceData');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.statis', function () {
    Route::rule('getIndexData', '/api/movie.statis/getIndexData');
    Route::rule('getIndexChartData', '/api/movie.statis/getIndexChartData');
    Route::rule('getGoodsChartData', '/api/movie.statis/getGoodsChartData');
    Route::rule('getPartnerChartData', '/api/movie.statis/getPartnerChartData');
    Route::rule('getPartnerMapData', '/api/movie.statis/getPartnerMapData');
    Route::rule('getCollectorChartData', '/api/movie.statis/getCollectorChartData');
    Route::rule('getCollectorMapData', '/api/movie.statis/getCollectorMapData');
    Route::rule('getCollectorOnlineData', '/api/movie.statis/getCollectorOnlineData');
    Route::rule('getCollectorBalanceData', '/api/movie.statis/getCollectorBalanceData');
    Route::rule('getStationChartData', '/api/movie.statis/getStationChartData');
    Route::rule('getStationMapData', '/api/movie.statis/getStationMapData');
    Route::rule('getStationRankingData', '/api/movie.statis/getStationRankingData');
    Route::rule('getPackChartData', '/api/movie.statis/getPackChartData');
    Route::rule('getPackMapData', '/api/movie.statis/getPackMapData');
    Route::rule('getPackRankingData', '/api/movie.statis/getPackRankingData');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.reserveOrder', function () {
    Route::rule('index', '/api/movie.reserveOrder/index');
    Route::rule('collectorList', '/api/movie.reserveOrder/collectorList');
    Route::rule('receive', '/api/movie.reserveOrder/receive');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.reserveLog', function () {
    Route::rule('index', '/api/movie.reserveLog/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.wxapp', function () {
    Route::rule('getAppInfo', '/api/movie.wxapp/getAppInfo');
    Route::rule('getExpUrl', '/api/movie.wxapp/getExpUrl');
    Route::rule('getVersionInfo', '/api/movie.wxapp/getVersionInfo');
    Route::rule('memberList', '/api/movie.wxapp/memberList');
    Route::rule('memberAdd', '/api/movie.wxapp/memberAdd');
    Route::rule('memberDelete', '/api/movie.wxapp/memberDelete');
    Route::rule('commit', '/api/movie.wxapp/commit');
    Route::rule('getCategory', '/api/movie.wxapp/getCategory');
    Route::rule('submit', '/api/movie.wxapp/submit');
    Route::rule('reback', '/api/movie.wxapp/reback');
    Route::rule('release', '/api/movie.wxapp/release');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.indexSet', function () {
    Route::rule('queryIndexSet', '/api/movie.indexSet/queryIndexSet');
    Route::rule('saveIndexSet', '/api/movie.indexSet/saveIndexSet');
    Route::rule('menu', '/api/movie.indexSet/menu');
    Route::rule('saveMenu', '/api/movie.indexSet/saveMenu');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.banner', function () {
    Route::rule('index', '/api/movie.banner/index');
    Route::rule('do_default', '/api/movie.banner/do_default');
    Route::rule('add', '/api/movie.banner/add');
    Route::rule('delete', '/api/movie.banner/delete');
    Route::rule('sortChange', '/api/movie.banner/sortChange');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.navigation', function () {
    Route::rule('index', '/api/movie.navigation/index');
    Route::rule('do_default', '/api/movie.navigation/do_default');
    Route::rule('add', '/api/movie.navigation/add');
    Route::rule('delete', '/api/movie.navigation/delete');
    Route::rule('sortChange', '/api/movie.navigation/sortChange');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.filmSet', function () {
    Route::rule('query', '/api/movie.filmSet/query');
    Route::rule('save', '/api/movie.filmSet/save');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.partnerSet', function () {
    Route::rule('query', '/api/movie.partnerSet/query');
    Route::rule('save', '/api/movie.partnerSet/save');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.accountSet', function () {
    Route::rule('query', '/api/movie.accountSet/query');
    Route::rule('save', '/api/movie.accountSet/save');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.integral', function () {
    Route::rule('index', '/api/movie.integral/index');
    Route::rule('add', '/api/movie.integral/add');
    Route::rule('queryIntegralSet', '/api/movie.integral/queryIntegralSet');
    Route::rule('saveIntegralSet', '/api/movie.integral/saveIntegralSet');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.brokerage', function () {
    Route::rule('statis', '/api/movie.brokerage/statis');
    Route::rule('index', '/api/movie.brokerage/index');
    Route::rule('add', '/api/movie.brokerage/add');

    Route::rule('edit_submit', '/api/movie.brokerage/edit_submit');
    Route::rule('reject_submit', '/api/movie.brokerage/reject_submit');
    Route::rule('queryBrokerageSet', '/api/movie.brokerage/queryBrokerageSet');
    Route::rule('saveBrokerageSet', '/api/movie.brokerage/saveBrokerageSet');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.brokerageLog', function () {
    Route::rule('index', '/api/movie.brokerageLog/index');
    Route::rule('shareholderLog', '/api/movie.brokerageLog/shareholderLog');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.user', function () {
    Route::rule('index', '/api/movie.user/index');
    Route::rule('reloadQrcode', '/api/movie.user/reloadQrcode');
    Route::rule('teamList', '/api/movie.user/teamList');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.commissionLog', function () {
    Route::rule('statis', '/api/movie.commissionLog/statis');
    Route::rule('index', '/api/movie.commissionLog/index');
    Route::rule('edit_submit', '/api/movie.commissionLog/edit_submit');
    Route::rule('reject_submit', '/api/movie.commissionLog/reject_submit');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.commissionSet', function () {
    Route::rule('queryPartner', '/api/movie.commissionSet/queryPartner');
    Route::rule('savePartner', '/api/movie.commissionSet/savePartner');
    Route::rule('queryAccount', '/api/movie.commissionSet/queryAccount');
    Route::rule('saveAccount', '/api/movie.commissionSet/saveAccount');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.partner', function () {
    Route::rule('index', '/api/movie.partner/index');
    Route::rule('statis', '/api/movie.partner/statis');
    Route::rule('check', '/api/movie.partner/check');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('movie.updateLog', function () {
    Route::rule('index', '/api/movie.updateLog/index');
    Route::rule('add', '/api/movie.updateLog/add');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.uploadFile', function () {
    Route::rule('index', '/api/system.uploadFile/index');
    Route::rule('cateList', '/api/system.uploadFile/cateList');
    Route::rule('addCate', '/api/system.uploadFile/addCate');
    Route::rule('delCate', '/api/system.uploadFile/delCate');
    Route::rule('delFile', '/api/system.uploadFile/delFile');
    Route::rule('uploadFile', '/api/system.uploadFile/uploadFile');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.auth', function () {
    Route::rule('user', '/api/system.auth/user');
    Route::rule('password', '/api/system.auth/password');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.role', function () {
    Route::rule('index', '/api/system.role/index');
    Route::rule('add', '/api/system.role/add');
    Route::rule('edit', '/api/system.role/edit');
    Route::rule('menu', '/api/system.role/menu');
    Route::rule('saveRoleMenu', '/api/system.role/saveRoleMenu');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.user', function () {
    Route::rule('index', '/api/system.user/index');
    Route::rule('agencyList', '/api/system.user/agencyList');
    Route::rule('agencyUser', '/api/system.user/agencyUser');
    Route::rule('add', '/api/system.user/add');
    Route::rule('addAgency', '/api/system.user/addAgency');
    Route::rule('addAgencyUser', '/api/system.user/addAgencyUser');
    Route::rule('addPartner', '/api/system.user/addPartner');
    Route::rule('partnerList', '/api/system.user/partnerList');
    Route::rule('pageList', '/api/system.user/pageList');
    
    Route::rule('getUser', '/api/system.user/getUser');
    
    Route::rule('getAdminProfileData', '/api/system.user/getAdminProfileData');
    Route::rule('getAdminSaleData', '/api/system.user/getAdminSaleData');
    Route::rule('getAdminChartData', '/api/system.user/getAdminChartData');
    
    Route::rule('getAgencyProfileData', '/api/system.user/getAgencyProfileData');
    Route::rule('getAgencySaleData', '/api/system.user/getAgencySaleData');
    Route::rule('getAgencyChartData', '/api/system.user/getAgencyChartData');
    
    Route::rule('getPartnerProfileData', '/api/system.user/getPartnerProfileData');
    Route::rule('getPartnerSaleData', '/api/system.user/getPartnerSaleData');
    Route::rule('getPartnerChartData', '/api/system.user/getPartnerChartData');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.menu', function () {
    Route::rule('index', '/api/system.menu/index');
    Route::rule('add', '/api/system.menu/add');
    Route::rule('edit', '/api/system.menu/edit');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.loginRecord', function () {
    Route::rule('index', '/api/system.loginRecord/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('system.operationRecord', function () {
    Route::rule('index', '/api/system.operationRecord/index');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('systemConfig', function () {
    Route::rule('save', '/api/systemConfig/save');
    Route::rule('query', '/api/systemConfig/query');
    Route::rule('queryVersion', '/api/systemConfig/queryVersion');
    Route::rule('saveVersion', '/api/systemConfig/saveVersion');
    Route::rule('proxyQuery', '/api/systemConfig/proxyQuery');
    Route::rule('saveProxy', '/api/systemConfig/saveProxy');
})->middleware(\app\api\middleware\CheckAdmin::class);

Route::group('common', function () {
    Route::rule('getAliyunToken', '/api/common/getAliyunToken');
    Route::rule('queryOss', '/api/common/queryOss');
    Route::rule('updateStatus', '/api/common/updateStatus');
    Route::rule('upload', '/api/common/upload');
    Route::rule('ossUpdate', '/api/common/ossUpdate');
    Route::rule('payUpdate', '/api/common/payUpdate');
    Route::rule('baseUpdate', '/api/common/baseUpdate');
    Route::rule('queryOssSet', '/api/common/queryOssSet');
    Route::rule('queryPaySet', '/api/common/queryPaySet');
    Route::rule('queryBaseSet', '/api/common/queryBaseSet');
    Route::rule('getSaleData', '/api/common/getSaleData');
    Route::rule('getPayData', '/api/common/getPayData');
    Route::rule('getVideoData', '/api/common/getVideoData');
    Route::rule('getCurShData', '/api/common/getCurShData');
    Route::rule('getAddShData', '/api/common/getAddShData');
    Route::rule('getShRank', '/api/common/getShRank');
    Route::rule('add', '/api/common/add');
    Route::rule('getRankSaleData', '/api/common/getRankSaleData');
    Route::rule('getMealData', '/api/common/getMealData');
    Route::rule('couponUpdate', '/api/common/couponUpdate');
    Route::rule('queryCoupon', '/api/common/queryCoupon');
    Route::rule('addScheme', '/api/common/addScheme');
    Route::rule('uploadPem', '/api/common/uploadPem');
    Route::rule('uploadFile', '/api/common/uploadFile');
    Route::rule('uploadApp', '/api/common/uploadApp');
    Route::rule('getProxySaleData', '/api/common/getProxySaleData');
    Route::rule('getProxyTbSaleData', '/api/common/getProxyTbSaleData');
    Route::rule('getProxyRankSaleData', '/api/common/getProxyRankSaleData');
    Route::rule('reloadQrcode', '/api/common/reloadQrcode');
    Route::rule('getOemShRank', '/api/common/getOemShRank');
    Route::rule('getLabel', '/api/common/getLabel');
    Route::rule('addLabel', '/api/common/addLabel');
    Route::rule('queryZgSet', '/api/common/queryZgSet');
    
    Route::rule('zgUpdate', '/api/common/zgUpdate');
    Route::rule('getZgDebitList', '/api/common/getZgDebitList');
    Route::rule('refZgNum', '/api/common/refZgNum');
})->middleware(\app\api\middleware\CheckAdmin::class);


